-- GENERATED SPELL FOR [Pesterhide Hyena] --


function spell0_4248(pUnit, Event) --@Bite,n/a--
pUnit:FullCastSpellOnTarget(17257,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4248', 631, 1)
end

function spell1_4248(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14917,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4248', 0, 1)
end

function Sorts_4248(pUnit, Event)
local choix_sorts_4248 = math.random(0, 1)
if choix_sorts_4248 == 0 then
pUnit:RegisterEvent('spell0_4248', 1, 1)
end
if choix_sorts_4248 == 1 then
pUnit:RegisterEvent('spell1_4248', 1, 1)
end
end

function mob4248_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4248', math.random(1500, 3000), 1)
end

function mob4248_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4248_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4248_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4248, 1, 'mob4248_Action')
RegisterUnitEvent(4248, 2, 'mob4248_Leave')
RegisterUnitEvent(4248, 3, 'mob4248_Kill')
RegisterUnitEvent(4248, 4, 'mob4248_Die')
